package com.crk.shixiguanli.entity.menu;

import lombok.Data;

import java.util.List;

/**
 * 菜单树形dto
 */
@Data
public class SysFunctionTreeDto {
    /**
     * 功能名称
     */
    private String label;
    /**
     * 功能ID
     */
    private Integer key;
    /**
     * 是否展开
     */
    private boolean spread;

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    /**
     * 是否被选中

     */
    private boolean checked;
    /**
     * 子列表
     */
    private List<SysFunctionTreeDto> children;

    @Override
    public String toString() {
        return "SysFunctionTreeDto{" +
                "label='" + label + '\'' +
                ", key='" + key + '\'' +
                ", spread=" + spread +
                ", checked=" + checked +
                ", children=" + children +
                '}';
    }
}